import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 投流线索列表CRUD
export const tlClueListCRUD = CRUD('/system/tl-clue');

// 分配给销售
export function assignSale(data: Record<string, any>) {
  return request.post({
    url: '/system/tl-clue/assign-sale',
    data,
  });
}

// 分配给公司
export function assignCompany(data: Record<string, any>) {
  return request.post({
    url: '/system/tl-clue/assign-company',
    data,
  });
}
// 跟进记录列表CRUD
export const clueMessageListCRUD = CRUD('/system/clue-message');